package com.grad.webstudy.exceptions;

/**
 * @Author: zjf
 * @Date: 2020/1/19 21:02
 * @Description:
 */
public class CustomException extends RuntimeException{


    private int code;

    //todo 将其他的异常都转换为这个异常
    public CustomException(String message) {
        super(message);
    }

    public CustomException(int code,String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
